package notYetUsed  
{
	import org.flixel.*;
	
	public class RainParticle extends FlxParticle
	{
		private var time:Number;
		private var touchedFloor:Boolean;
		
		public function RainParticle() 
		{
			super();
			
			time = 0;
			touchedFloor = false;
		}
		
		override public function reset(X:Number, Y:Number):void 
		{
			super.reset(X, Y);
			time = 0;
			touchedFloor = false;
			alpha = 1;
		}
		
		override public function update():void 
		{
			if (touchedFloor)
				time += FlxG.elapsed;
				
			if (justTouched(FLOOR))
			{
				velocity.y = -80;
				acceleration.y = 1600;
				velocity.x = 40;
				alpha = 0.2;
				
				touchedFloor = true;
			}
			
			if (time > 0.4)
			{
				kill();
			}
		}
		
	}

}